package com.chefu.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chefu.common.pojo.PageResult;
import com.chefu.order.pojo.ServerOrder;
import com.chefu.order.pojo.vo.ServerOrderDetailVo;
import com.chefu.order.pojo.vo.ServerOrderPageParamVo;
import com.chefu.order.pojo.vo.ServerOrderPageVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author goodgoodstudy
 * @since 2021-03-30
 */
public interface ServerOrderService extends IService<ServerOrder> {

    PageResult<ServerOrderPageVo> getOrderPage(Integer pageNo, Integer pageSize, ServerOrderPageParamVo paramVo);

    PageResult<ServerOrderPageVo> getPendingServerOrder(Integer pageNo, Integer pageSize, ServerOrderPageParamVo paramVo);

    void closeServerOrder(Long orderId);

    ServerOrderDetailVo getOrderDetail(Long orderId);
}
